Water Simulation in LIBGDX [on hold]

Posted by Noah Huppert on Game Development See other posts from Game Development or by Noah Huppert
Published on 2013-11-06T13:03:55Z Indexed on 2013/11/06 16:15 UTC
Read the original article Hit count: 308

Filed under:
|
|

I am doing some R&D for a game and am now tackling the topic of water.

The goal
Make water that can flow. Aka you can have an origin point that water shoots out from or a downhill slope. Make it so water splashes, so when an object hits the water there is a splash. Aka: Actual physics water sim.

The current way I know how to do it
I know how to create a shader that makes an object look like its water by making waves. Combined with that you can check to see if an object is colliding and apply an upwards force to simulate buoyancy.

What is wrong with that way

  • The water does not flow
  • No splashes


Possible solutions
Have particles that are fairly large that interact with each other to simulate water

Possible drawbacks
Performance.

Question:
Is there a better way to do water or is using particles as described the only way?

© Game Development or respective owner

Related posts about libgdx

Related posts about simulations